import request from '@/utils/request'

// 查询村情信息列表
export function listConditions(query) {
  return request({
    url: '/basicdata/conditions/list',
    method: 'get',
    params: query
  })
}

// 查询村情信息详细
export function getConditions(id) {
  return request({
    url: '/basicdata/conditions/' + id,
    method: 'get'
  })
}

// 新增村情信息
export function addConditions(data) {
  return request({
    url: '/basicdata/conditions',
    method: 'post',
    data: data
  })
}

// 修改村情信息
export function updateConditions(data) {
  return request({
    url: '/basicdata/conditions',
    method: 'put',
    data: data
  })
}

// 删除村情信息
export function delConditions(id) {
  return request({
    url: '/basicdata/conditions/' + id,
    method: 'delete'
  })
}

// 导出村情信息
export function exportConditions(query) {
  return request({
    url: '/basicdata/conditions/export',
    method: 'get',
    params: query
  })
}